Skip to content

docs(agents): add AGENTS.md, agent configs, and AI attribution policy - #48

Merged
martian56 merged 4 commits into
mainfrom
docs/agents-md-ai-attribution
Jul 10, 2026
Merged

docs(agents): add AGENTS.md, agent configs, and AI attribution policy#48
martian56 merged 4 commits into
mainfrom
docs/agents-md-ai-attribution

Conversation

@martian56

@martian56 martian56 commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary

Add AGENTS.md as the shared, tool-agnostic guide for the repo and wire the other
agent tools to it, so any AI coding agent and any human works from one source of
truth. Also document an AI attribution policy and start tracking the existing
Cursor rules so agent guidance ships with the repo.

Related issues

N/A

Type of change

  • Documentation only
  • Tests / CI / tooling (gitignore guards, PR template, version bump)

Areas touched

  • Documentation
  • Infra / Docker / CI

Database changes

N/A

Implementation notes

  • AGENTS.md is the new canonical guide, synced to the repo's current state
    (CODEOWNERS, pre-push hook, and the recent real-time hardening around
    reconnect, Redis subscribe, cache reset, token refresh, and peer.left).
  • CLAUDE.md and GEMINI.md are thin files that import it with @AGENTS.md.
    .github/copilot-instructions.md is a compact self-contained mirror since
    Copilot does not follow imports.
  • The 17 .cursor/rules/*.mdc files are now tracked. .gitignore un-ignores
    the agent config and CLAUDE.md, and adds guards so local-only files such as
    .claude/settings.local.json stay out. memory/ remains ignored.
  • AI attribution policy is documented in AGENTS.md, CONTRIBUTING.md, and the PR
    template: a Co-Authored-By trailer on the commit and an attribution note in
    the PR description.
  • Frontend version bumped to 0.4.1.

AI attribution

  • Claude Code (Opus 4.8): drafted AGENTS.md and the CLAUDE, GEMINI, and Copilot
    config files, updated CONTRIBUTING.md, the PR template, and .gitignore, and
    wrote the commits. Reviewed by the repo maintainer.

How to test

Docs and config only. Confirm AGENTS.md renders, the @AGENTS.md import
resolves in CLAUDE.md, and the tracked .cursor/rules appear in the tree.

Checklist

  • My branch is up to date with main.
  • I confirmed no secrets, tokens, or .env files are committed.
  • I attributed the AI tool that helped (Co-Authored-By trailer plus the AI attribution section).
  • I updated docs where relevant.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation

    • Added comprehensive project guidance for architecture, authentication, databases, APIs, real-time collaboration, frontend canvas integration, coding standards, and development workflows.
    • Documented contribution requirements for AI-assisted changes and attribution.
    • Added guidance for supported coding agents and Windows PowerShell workflows.
  • Chores

    • Updated repository ignore rules for local tools and editor files.
    • Incremented the frontend package version from 0.4.0 to 0.4.1.

martian56 and others added 2 commits July 10, 2026 13:08
Introduce AGENTS.md as the shared, tool-agnostic guide and single source of truth for AI coding agents. CLAUDE.md and GEMINI.md import it, and a compact Copilot instructions file mirrors the key rules. Track the existing .cursor/rules so agent guidance ships with the repo, and guard local-only agent files in .gitignore. Document the AI attribution policy (Co-Authored-By trailers plus a PR attribution section) in AGENTS.md, CONTRIBUTING.md, and the PR template.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@martian56, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 35 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: fca3bc9c-ca75-4d67-a905-1a0584df1261

📥 Commits

Reviewing files that changed from the base of the PR and between 9d31162 and c0f5d29.

📒 Files selected for processing (2)
  • .gitignore
  • apps/frontend/src/lib/api.test.ts
📝 Walkthrough

Walkthrough

The PR adds repository guidance for contributors and AI coding tools, defines backend and frontend development conventions through Cursor rules, updates local configuration ignores, and bumps the frontend package version from 0.4.0 to 0.4.1.

Changes

Repository guidance

Layer / File(s) Summary
Canonical contributor and agent guidance
AGENTS.md, CLAUDE.md, GEMINI.md, CONTRIBUTING.md, .github/PULL_REQUEST_TEMPLATE.md, .github/copilot-instructions.md
Adds shared repository instructions, AI attribution requirements, architecture conventions, and tool-specific guidance.
Backend architecture and API rules
.cursor/rules/api-*.mdc, .cursor/rules/alembic-no-auto-migrations.mdc, .cursor/rules/python-standards.mdc
Defines backend layering, authentication, database, REST, board elements, Redis, WebSocket, migration, and Python standards.
Frontend collaboration and UI rules
.cursor/rules/loomy-tech-stack.mdc, .cursor/rules/excalidraw-canvas.mdc, .cursor/rules/yjs-sync.mdc, .cursor/rules/uncodixify-ui.mdc, .cursor/rules/extend-dont-abstract.mdc
Documents the frontend stack, canvas persistence, Yjs synchronization, UI constraints, and module extension preferences.
Project context and local tooling
.cursor/rules/loomy-project-context.mdc, .cursor/rules/windows-powershell.mdc, .gitignore
Adds project context, PowerShell conventions, and local agent override ignore patterns.

Frontend release metadata

Layer / File(s) Summary
Frontend package version
apps/frontend/package.json
Updates the package version from 0.4.0 to 0.4.1.

Estimated code review effort: 2 (Simple) | ~10 minutes

Poem

A rabbit reads rules beneath moonlight bright,
JWT carrots are stacked just right.
Yjs hops with Excalidraw’s pen,
PowerShell burrows through folders again.
“0.4.1!” sings the bunny with cheer,
While tidy guidance grows crystal-clear.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: shared agent guidance, agent configs, and AI attribution policy updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/agents-md-ai-attribution

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.cursor/rules/alembic-no-auto-migrations.mdc:
- Around line 13-16: Update the Alembic workflow guidance in the referenced
rule: remove the instruction to run `alembic revision` or `alembic upgrade`, and
instead tell contributors to record the model change and ask a maintainer to
generate and review the migration. Preserve the existing instructions not to
create migration files or run Alembic commands.

In @.cursor/rules/api-database-conventions.mdc:
- Around line 11-15: Update the “Model Changes Workflow” section to remove the
Alembic migration-generation and idempotency requirements. Instruct contributors
to modify and validate SQLAlchemy models only, leaving migration creation and
execution to the maintainer manually, consistent with repository policy.

In @.cursor/rules/windows-powershell.mdc:
- Around line 8-10: Correct the command guidance in the Windows PowerShell
rules: update the prohibited bash-specific examples to remove `;` and `$VAR`,
since both are valid PowerShell syntax, while retaining genuinely bash-specific
forms such as `&&`, `[[ ]]`, and `rm -rf`. Ensure the related guidance in the
sections referenced by the comment consistently recommends PowerShell command
chaining with `;`.

In `@AGENTS.md`:
- Around line 56-58: Update the four fenced code blocks in AGENTS.md, including
the block containing the commit-message format and those at the referenced
sections, by adding an appropriate language identifier such as text to each
opening fence so markdownlint MD040 passes.
- Line 3: Update the introductory source-of-truth statement in AGENTS.md to
clarify that .cursor/rules/*.mdc files are standalone mirrors that must remain
aligned with AGENTS.md, rather than pointing back to or importing it; retain the
existing import/reference wording for CLAUDE.md, GEMINI.md, and Copilot.
- Around line 27-28: Remove the Alembic command rows from the common-command
table in AGENTS.md and replace them with an explicit entry stating: “Do not run
Alembic commands; the maintainer manages migrations.” Ensure the guidance
consistently prohibits both alembic revision and alembic upgrade.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: da0ef693-e3e9-45e3-a252-e2738efa4582

📥 Commits

Reviewing files that changed from the base of the PR and between b064a31 and 9d31162.

⛔ Files ignored due to path filters (1)
  • apps/frontend/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (25)
  • .cursor/rules/alembic-no-auto-migrations.mdc
  • .cursor/rules/api-authentication.mdc
  • .cursor/rules/api-boards-elements.mdc
  • .cursor/rules/api-database-conventions.mdc
  • .cursor/rules/api-layer-responsibilities.mdc
  • .cursor/rules/api-modular-architecture.mdc
  • .cursor/rules/api-realtime-websockets.mdc
  • .cursor/rules/api-redis.mdc
  • .cursor/rules/api-rest-conventions.mdc
  • .cursor/rules/excalidraw-canvas.mdc
  • .cursor/rules/extend-dont-abstract.mdc
  • .cursor/rules/loomy-project-context.mdc
  • .cursor/rules/loomy-tech-stack.mdc
  • .cursor/rules/python-standards.mdc
  • .cursor/rules/uncodixify-ui.mdc
  • .cursor/rules/windows-powershell.mdc
  • .cursor/rules/yjs-sync.mdc
  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/copilot-instructions.md
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • GEMINI.md
  • apps/frontend/package.json

Comment thread .cursor/rules/alembic-no-auto-migrations.mdc Outdated
Comment thread .cursor/rules/api-database-conventions.mdc Outdated
Comment thread .cursor/rules/windows-powershell.mdc Outdated
Comment thread AGENTS.md
Comment thread AGENTS.md
Comment thread AGENTS.md
@martian56 martian56 assigned martian56 and unassigned martian56 Jul 10, 2026
@nazarli-shabnam nazarli-shabnam added the documentation Improvements or additions to documentation label Jul 10, 2026
@nazarli-shabnam nazarli-shabnam added this to the Enhancement Deadline milestone Jul 10, 2026
martian56 and others added 2 commits July 10, 2026 13:34
Pre-existing formatting violation surfaced by prettier --check in UI CI. Formatting only, no logic change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Keep Cursor rules local and gitignored. AGENTS.md is the shared, tool-agnostic guide, so the Cursor-specific rules do not need to ship in the repo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@martian56
martian56 merged commit d744c4a into main Jul 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants